package com.hxkj.cst.chengshuitong.presenter

import android.content.Context
import com.hxkj.cst.chengshuitong.control.RegisterControl
import com.hxkj.cst.chengshuitong.model.ServiceResultModel
import com.hxkj.cst.chengshuitong.setDataToShared

/**
 * 作者： Luoyang on 2017/5/27.
 * 描述：
 */
class RegisterPresenter(val view: RegisterControl.View, val context: Context) : RegisterControl.Presenter {

    override fun register(phone: String, password: String, emial: String) {
        context.setDataToShared("phone", phone)
        context.setDataToShared("password", password)
        context.setDataToShared("email", emial)
        view.registerResult(ServiceResultModel.SUCCESS)
    }
}